package com.jf.cloud.payment.allinpay.member.req;

import com.jf.cloud.payment.allinpay.member.MemberType;

/**
 * 创建会员
 * @author LGH
 */
public class CreateMember extends AbstractMemberReq {

	/**
	 * 用户类型
	 */
	private Integer memberType = MemberType.INDIVIDUAL.value();

	/**
	 * 访问终端类型
	 */
	private Integer source;

	public static final String METHOD_NAME = "createMember";

	/**
	 * 创建会员，默认个人用户
	 * @param bizUserId 本地用户id
	 */
	public CreateMember(String bizUserId) {
		this.bizUserId = bizUserId;
		// 默认个人用户
		this.memberType = MemberType.INDIVIDUAL.value();
	}

	public CreateMember() {
	}


	@Override
	public String getMethod() {
		return METHOD_NAME;
	}

	public Integer getMemberType() {
		return memberType;
	}

	public void setMemberType(Integer memberType) {
		this.memberType = memberType;
	}

	public Integer getSource() {
		return source;
	}

	public void setSource(Integer source) {
		this.source = source;
	}
}
